package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * ForumUserQaEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "forum_user_qa", schema = "yzj_forum")
public class ForumUserQaEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /** */
  @TableId("id")
  private Integer id;

  /** 答案 ID */
  @TableField("answerId")
  private Integer answerId;

  /** 操作时间 */
  @TableField("createTime")
  private Date createTime;

  /** 逻辑删除 */
  @TableField("delete")
  private Boolean delete;

  /** 问题 ID */
  @TableField("questionId")
  private Integer questionId;

  /** 是否收藏问题或点赞答案 */
  @TableField("toOpera")
  private Boolean toOpera;

  /** 用户 ID */
  @TableField("userId")
  private Integer userId;

  @Override
  public final Class entityClass() {
    return ForumUserQaEntity.class;
  }
}
